

interface ModelType<S, E, R> {
    namespace: string;
    state: S;
    effects?: E;
    reducers?: R;
    subscribe?: any;
}


interface IResponse<T> {
    code: 200 | 400 | number;
    data: T;
    message: string;
}

interface ILoading {

}
type PromiseFun<T> = (...arg: any[]) => Promise<T>